<?php 
namespace Admin\Model;
use Think\Model;
class OrdersModel extends Model{
	public function getAll(){

		$list = $this->select();

		
		$status = array('新订单','已发货','已收货','无效订单');
		foreach($list as $key => $val){
			$list[$key]['status'] = $status[$val['status']];
		}
		

		foreach($list as $key => $val){
			date_default_timezone_set("PRC");  //设置中国时区
			$list[$key]['addtime'] = date('Y-m-d H:i:s',$list[$key]['addtime']);
		}

		return $list;
	}

}